﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace oopPrijectDraft
{
    public abstract class Merchandise:IEncodable
    {
        public Merchandise(string description, string manufacturer, double price, uint year, uint quantity)
        {
            Description = description;
            Manufacturer = manufacturer;
            Price = price;
            Year = year;
            Quantity = quantity;
        }
        private string description;

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        private string model;

        public string Model
        {
            get { return model; }
            set { model = value; }
        }

        private string manufacturer;

        public string Manufacturer
        {
            get { return manufacturer; }
            set { manufacturer = value; }
        }

        private double price;

        public double Price
        {
            get { return price; }
            set { price = value; }
        }

        private uint year;

        public uint Year
        {
            get { return year; }
            set { year = value; }
        }

        private uint quantity;

        public uint Quantity
        {
            get { return quantity; }
            set { quantity = value; }
        }

        public bool Sell(string customerName,uint quantity)
        {
            throw new NotImplementedException();
        }
        abstract public void Display();

       
       
        abstract public void Encode(StreamWriter writer);
    }
}
